home *** CD-ROM | disk | FTP | other *** search
- set oldLevel to level
- set C to the clickOn
- set t to the top of sprite C
- set b to the bottom of sprite C
- set h to b - t
- set levelControl to (level * 2) - 1
- repeat while the mouseDown
- set oldLevelControl to levelControl
- set y to the mouseV - 4
- if y > b then
- set y to b
- end if
- if y < t then
- set y to t
- end if
- set levelControl to ((b - y) / (h / 4)) + 1
- set the castNum of sprite C to the number of cast ("level" & levelControl)
- if oldLevelControl <> levelControl then
- puppetSound("CrankTick")
- end if
- updateStage()
- end repeat
- if level = 2 then
- set numCorrect4Lev2 to numCorrect
- end if
- if level = 3 then
- set numCorrect4Lev3 to numCorrect
- end if
- if levelControl <= 2 then
- set level to 1
- end if
- if levelControl = 3 then
- set level to 2
- end if
- if levelControl >= 4 then
- set level to 3
- end if
- if level = 2 then
- set numCorrect to numCorrect4Lev2
- end if
- if level = 3 then
- set numCorrect to numCorrect4Lev3
- end if
- if not integerp(numCorrect) then
- set numCorrect to 0
- end if
- set lastWrongAnswer to numCorrect
- if level < oldLevel then
- if oldLevel = 2 then
- set numCorrect4Lev2 to 0
- end if
- if oldLevel = 3 then
- set numCorrect4Lev3 to 0
- end if
- end if
- set the castNum of sprite C to the number of cast ("level" & (level * 2) - 1)
- if ((level * 2) - 1) <> levelControl then
- puppetSound("CrankTick")
- end if
- updateStage()
- if oldLevel <> level then
- set correctCounter2 to 0
- set numWrong to 0
- if (scene = 2) and the castNum of sprite 17 then
- set the locH of sprite 4 to the locH of sprite 4 - 512
- set the locH of sprite 17 to the locH of sprite 17 - 512
- updateStage()
- end if
- if spriteInAction then
- set the locH of sprite spriteInAction to -256
- updateStage()
- removehider()
- grabBackground()
- turncharactersoff()
- put numChar into word gNumber of numCharacters
- end if
- clearTheDecks()
- go("level" & level)
- end if
-